package com.motan.client;

import com.motan.demo.api.FooService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by shangyidong on 16/9/13.
 */

/*
https://github.com/weibocom/motan/wiki/zh_quickstart#%E7%AE%80%E5%8D%95%E8%B0%83%E7%94%A8%E7%A4%BA%E4%BE%8B
 */
public class Main {
    public static void main(String[] args){
        ApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:/spring/motan-client.xml");
        FooService fooService = (FooService) ctx.getBean("fooService");
        System.out.println(fooService.hello("motan"));
    }
}
